﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Globalization;

namespace Project.Models
{
    public class BlogModel
    {
        [Required]
        [StringLength(40, ErrorMessage = "Your name must be at most 40 characters long.")]
        [Display(Name = "Blog name")]
        public string Name { get; set; }

        [Required]
        [StringLength(200, ErrorMessage = "The URL must be at most 200 characters long.")]
        [DataType(DataType.Url)]
        [Display(Name = "Blog URL")]
        public string URL { get; set; }

        [Required]
        [StringLength(200, ErrorMessage = "The keywords must be at most 200 characters long.")]
        [Display(Name = "Keywords")]
        public string Keywords { get; set; }

        [Required]
        [Display(Name = "Category")]
        public int categoryID { get; set; }
    }
}